﻿using System;
using System.Web;
using System.Web.UI;

using SY.Uap.Entity;

namespace SY.WebSite.Web
{
    /// <summary>
    /// 页面基类
    /// </summary>
    public class AdminPage : BasePage
    {
        protected override void OnInit(EventArgs e)
        {
            //NLog.Log.DefaultLog().Write("OnInit");
            base.OnInit(e);

            if (CurrentUser.UserType != 100)
            {
                RedirectToAuthorityPage("当前用户" + CurrentUser.UserName + "(" + CurrentUser.JobNumber + ") 没有后台管理权限");
            }
        }
    }
}